import React from "react";
import View from "../base/View";
import defaultData from "./data";
import './index.less';

export default class DescView extends View {
  renderContent(data) {
    return (
      <div dangerouslySetInnerHTML={{__html: data.desc}} ></div>
    );
  }

  renderForReadonly(data) {
    return (
      <div dangerouslySetInnerHTML={{__html: data.desc}} ></div>
    );
  }
}

DescView.defaultProps = {
  data: defaultData,
  value: ''
};